Skip to content

Conversation

@corvinsz
Copy link
Member

@corvinsz corvinsz commented Sep 4, 2025

fixes #3914

As far as I can tell, the root cause of this issue is that the SmartHint.IsContentNullOrEmpty is not updated when the visibility changes, and therefore set to false (even though it should be true).
Setting the IsContentNullOrEmpty initially (in the RefreshState method) fixes this issue.

485673542-c0fd7ea8-2535-49e3-ab85-10fb743c3e0a

@Keboo
Copy link
Member

Keboo commented Sep 5, 2025

Change looks good. Would you mind adding a UI test for this case as well?

@corvinsz
Copy link
Member Author

corvinsz commented Sep 9, 2025

I added a UI test for this.

@DoLovya
Copy link

DoLovya commented Sep 12, 2025

Hello, I think your modification should be placed in the action section. Could you please have this bug fixed by me? I want to join some open-source communities to learn from them.

DoLovya pushed a commit to DoLovya/MaterialDesignInXamlToolkit that referenced this pull request Sep 12, 2025
@corvinsz corvinsz closed this Sep 12, 2025
@corvinsz corvinsz reopened this Sep 12, 2025
@corvinsz
Copy link
Member Author

I reopened this so the tests run on CI once more. So far I couldn't reproduce the failing test (OnDatePicker_WithClearButton_ClearsSelectedUncommittedText) on my machine, and I also don't think it's a flaky test because I have ran the test like 20 times now without it failing once.

@Keboo Keboo added this to the 5.3.0 milestone Sep 15, 2025
@Keboo Keboo merged commit aa2bddd into MaterialDesignInXAML:master Sep 15, 2025
3 of 4 checks passed
@corvinsz corvinsz mentioned this pull request Sep 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TextBox clear button visible even when no text

3 participants